package com.akcome.apollo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.akcome.apollo.domain.VStatsPoolDay;

/**
 * VIEWRepository接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface VStatsPoolDayRepository extends JpaRepository<VStatsPoolDay,Long>,JpaSpecificationExecutor<VStatsPoolDay> {

	@Query(nativeQuery=true,value="select * from v_stats_pool_day where day BETWEEN ?1 and ?2 and cointype=?3 order by day asc")
	List<VStatsPoolDay> findByDayBetween(String beginDate,String endDate,String cointype);
}
